<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var arr=[1,2,5,4,6,8,5,2,1,1];
        Array.prototype.mySome=function(handler){
          var flag=false;
          for(var i=0;i<this.length;i++){
            var item=this[i]
            var result=handler(item)
            if(result==false){
                continue
            }
            else{
                flag=true;
                break;
            }
          }
          return flag;
        }
        var result=arr.mySome(function(item){
            return item>5
        })
        console.log(result)
    </script>
</head>
<body>
    
</body>
</html>